package com.gaia.member.gaiatt.login;

import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.gaia.member.gaiatt.R;
import com.gaia.member.gaiatt.ui.DegreeScaleView;
import com.gaia.member.gaiatt.utils.Uiutils;

import butterknife.Bind;
import butterknife.ButterKnife;

public class FirstLoginGuide2Activity extends AppCompatActivity {


    @Bind(R.id.btn_next)
    Button btnNext;
    @Bind(R.id.degree_value_text_view)
    TextView degreeValueTextView;
    @Bind(R.id.degree_scale_view)
    DegreeScaleView degreeScaleView;
    @Bind(R.id.tv_title_title_bar)
    TextView tvTitleToolBar;
    private Activity mContext;
    private float curWeight;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mContext = this;
        setContentView(R.layout.activity_first_login_guide2);
        ButterKnife.bind(this);

        tvTitleToolBar.setText("基本资料填写");
        degreeScaleView.setOnValueChangeListener(new DegreeScaleView.OnValueChangeListener() {
            @Override
            public void onValueChange(float value) {
                degreeValueTextView.setText(value + "kg");
                curWeight = value;
            }
        });

        btnNext.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Uiutils.showToast(mContext, "进入主界面");
            }
        });
    }
}
